package com.qdlc.p2p.biz.adapted;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.qdlc.p2p.common.core.ReturnResult;
import com.qdlc.p2p.dal.dto.User;

/**
 * 功能描述: 充值接口 
 * @author linya
 * @date 2016-4-22
 */
public interface AdaptedRechargeService extends AdaptedPayService{

    /**
     * [网银充值] 检测前置条件
     * @param user
     * @return
     * @throws Exception
     */
    ReturnResult rechargePreCondition(User user, double money);

    /**
     * [网银充值] 充值
     * @param user
     * @param money
     * @return
     * @author linya
     */
	ReturnResult doRecharge(User user, double money, HttpServletRequest request);
	
	/**
	 * [网银充值] 回调
	 * @return
	 */
	ReturnResult notifying(HttpServletRequest request, HttpServletResponse response);

	/**
	 * [认证充值] 认证充值，回调页面为app端
	 * @param user
	 * @param money
	 * @return
	 * @author hongbinglin
	 */
	ReturnResult authRecharge(User user, double money, HttpServletRequest request);
	
}
